package com.ac;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import com.ac.cron.CronManager;
import com.ac.util.ConfUtils;
import com.ac.util.RootPath;

@EnableAspectJAutoProxy
@SpringBootApplication
public class App {
	public static void main(String[] args) {
		try {
			ConfUtils.setConf(args);
			SpringApplication.run(App.class, args);// 初始化spring boot
			CronManager.run();
			RootPath.start();
		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("系统启动失败");
		}
	}

}